package com.zsk.shop;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.zsk.shop.common.constant.StaticConfigUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@MapperScan("com.zsk.shop.mapper")
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
public class ZSKShopApplication {
    private static final Logger logger = LoggerFactory.getLogger(ZSKShopApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(ZSKShopApplication.class, args);
        logger.info("http://" + StaticConfigUtil.getUrl() + ":" + StaticConfigUtil.getPort() + "/doc.html");
        logger.info("http://" + StaticConfigUtil.getUrl() + ":" + StaticConfigUtil.getPort() + "/druid/index.html");
    }

}
